<?php drupal_add_css(drupal_get_path('theme', 'nobel') . '/css/styles.css', array('group' => CSS_THEME)); ?>

<style type="text/css">
  .form_control input {
    height: 37px;
    padding: 0 3%
  }
</style>

<main id="content" role="main">
  <?= drupal_render($form['form_build_id']) ?>
  <?= drupal_render($form['form_id']) ?>
  <div class="container clearfix">
    <div class="top-notification"></div>
    <div class="main col1-layout no-title">
      <div class="col-main">
        <div class="col-main-wrap">
          <div class="page-title mod mod-headline">
            <h1 class="b">登录会员账户，尽享更多会员福利 </h1>
          </div>

          <div class="rows clearfix">
            <div class="pull-left login-l col_5 col_12-xs">
              <h3 class="b mrg-btm-10">请登录</h3>
              <ul class="form-list">
                <li class="form_control">
                  <label for="email" class="required">
                    手机号码 *
                  </label>
                  <div class="input-box">
                    <input class="required input-text <?php if (!empty(form_get_errors()['name'])) { ?> error<?php } ?>" value="<?= $form['name']['#value'] ?>"
                           type="text" name="<?= $form['name']['#name'] ?>" id="name">
                  </div>
                  <?php if (!empty(form_get_errors()['name'])) { ?>
                    <span id="edit-name-error" class="error"> <?= str_replace('用户账号', '手机号码', form_get_errors()['name']) ?></span>
                  <?php } ?>
                </li>
                <li class="form_control">
                  <a class="pull-right" href="<?= url('user/password') ?>">忘记密码?</a>
                  <label for="pass" class="required"><?= $form['pass']['#title'] ?> *</label>
                  <div class="input-box">
                    <input class="required input-text" value="<?= $form['pass']['#value'] ?>" type="password" name="<?= $form['pass']['#name'] ?>" id="password"
                           autocomplete="off">
                  </div>
                </li>
                <li class="form_control">
                  <div class="check mrg-btm-10">
                    <input style="height: auto" name="<?= $form['persistent_login']['#name'] ?>" id="<?= $form['persistent_login']['#id'] ?>"
                           title="Keep me signed in" type="checkbox">
                    <label for="RememberMyEmail">
                      <span class="sprites"></span>保持登录
                    </label>
                  </div>
                  <div class="buttons-set form-buttons btn-only">
                    <button type="<?= $form['actions']['submit']['#type'] ?>" class="button colored" name="send" id="send2">
                      <span><?= $form['actions']['submit']['#value'] ?></span>
                    </button>
                  </div>
                </li>
              </ul>
            </div>
            <div class="pull-right login-r col_5 col_12-xs">
              <div class="pad-left-40 m-static-block">
                <h3 class="b mrg-btm-10">立即注册</h3>
                <h6 class="b">免费注册并登录Nobel Biocare会员账户，即可下载电子资料、观看手术视频，尽享更多会员福利。我们也会尽快安排当地负责同事为您提供更详细的资讯信息。</h6>
                <p><a class="button button2"
                      href="<?= !empty($_GET['destination']) && drupal_valid_path($_GET['destination']) && $_GET['destination'] !='user/register' && $_GET['destination'] !='user/register' ? url('user/register', array('query' => array('destination' => $_GET['destination']))) : url('user/register') ?>">注册</a>
                </p>
              </div>
            </div>
          </div>

        </div>
      </div>
    </div>
  </div>
</main>